package com.ssy.jt808.gateway.infrastructure.config;

import com.ssy.gaea.redis.IRedissonSpringCacheConfig;
import com.ssy.jt808.gateway.domain.property.KafkaConfigProperties;
import com.ssy.jt808.gateway.infrastructure.constant.TerminalMessageCache;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangzezhou
 */
@Configuration
@EnableConfigurationProperties(KafkaConfigProperties.class)
public class Jt808TerminalConfig{

  @Bean
  public IRedissonSpringCacheConfig[] redissonSpringCacheType(){
    return TerminalMessageCache.values();
  }
}
